package com.mayi.zds.service.imp;

import com.mayi.zds.dao.BusinessDAO;
import com.mayi.zds.entity.Business;
import com.mayi.zds.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author 刘宇涛
 * @Date 2019/12/25
 */
@Service
public class BusinessServiceImp implements BusinessService {
    @Autowired
    BusinessDAO businessDAO;
    /**
     * @Author 刘宇涛
     * @Description  查询商铺下所有商品（第一次进入或未选择标签）
     * @Date 11:51 2019/12/25
     * @Param [businessId]  商铺id
     * @return java.util.List<com.mayi.zds.entity.Business>    该商铺信息实体类（包含商铺类别，标签集合（包含商品集合（包含评价集合）））
     **/
    @Override
    public Business getById(String businessId) {
        return businessDAO.getByIdToView(businessId);
    }
}
